package cn.wolfcode.wolf2w.service;

import cn.wolfcode.wolf2w.domain.ScenicSpotIntroduction;
import cn.wolfcode.wolf2w.query.ScenicSpotIntroductionQuery;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * 用户服务接口
 */
public interface IScenicSpotIntroductionService {

    /**
    * 添加
    * @param scenicSpotIntroduction
    * @return
    */
    void save(ScenicSpotIntroduction scenicSpotIntroduction);

    /**
    * 更新
    * @param scenicSpotIntroduction
    * @return
    */
    void update(ScenicSpotIntroduction scenicSpotIntroduction);

    /**
     * 查单个
     * @param id
     * @return
     */
    ScenicSpotIntroduction get(String id);

    /**
    * 查多个
    * @return
    */
    List<ScenicSpotIntroduction> list();


    /**
     * 添加与更新
     * @param scenicSpotIntroduction
     */
    void saveOrUpdate(ScenicSpotIntroduction scenicSpotIntroduction);

    /**
     * 删除
     * @param id
     */
    void delete(String id);

    /**
    * 分页
    * @param qo
    * @return
    */
    Page<ScenicSpotIntroduction> query(ScenicSpotIntroductionQuery qo);

    ScenicSpotIntroduction findByScenicId(String scenicId);
}
